<div class="content">
        <div class="content_header">
       
         <?php 
         echo "<span style='text-transform:uppercase'>".$loai_tailieu->ten_type_tailieucol_vtv4."</span>";
         	if($checkQuyen){
         ?>
        <a class="buttonthem" href="<?php echo base_url()?>tailieu/viewAddTailieu/<?php echo $type?>">Thêm tài liệu</a>
        <?php }?>
        </div>
        <div class="content_downloads">
            <div class="download_row first_row">
                <div class="stt">STT</div>
                <div class="tailieu">Tài liệu</div>
                <div class="download">Download</div>
            </div>
            <?php 
            $stt = 0;
            foreach ($alltailieu as $tailieu){
				$stt++;
				$id_tailieu = $tailieu->id_tailieu;
				$ten_tailieu = $tailieu->ten_tailieu;
				$mota_tailieu = $tailieu->mota_tailieu;
				//$link_tailieu = $tailieu->link_tailieu;
            ?>
            <div class="download_row odd">
                <div class="stt"><?php echo $stt;?></div>
                <div class="tailieu">
                    <div class="ten_tailieu">
                        <?php echo $ten_tailieu;?>
                        <?php 
		                if($checkQuyen){
		                ?>
		                <a class="suabutton" href="<?php echo base_url().'tailieu/edit/'.$id_tailieu?>">Sửa</a>
		                <a class="suabutton" href="<?php echo base_url().'tailieu/del/'.$id_tailieu?>">Xóa</a>
		                <?php }?>
                    </div>
                    <div class="mota_tailieu">
                        <?php echo $mota_tailieu?>
                    </div>
                </div>
                <div class="download">
                    <a href="<?php echo base_url().'tailieu/download/'.$id_tailieu?>">
                        <div class="download_image"></div> 
                    </a>
                </div>
            </div>
            <?php }?>        
            <div style="clear:both"></div>
        </div>
    </div>